package cn.bby.query.base.constant;

/**
 * @author ben
 * @since 2025/4/23 23:50
 */
public enum AdvSettingKey {
    DEFAULT_PAGE_SIZE("adv-query.default-page-size", "10000");
    public final String key;
    public final String defaultValue;

    AdvSettingKey(String key, String defaultValue) {
        this.key = key;
        this.defaultValue = defaultValue;
    }

    public static Integer getInteger(AdvSettingKey key) {
        return Integer.parseInt(key.defaultValue);
    }
}
